package com.xiyue.leaspring.vo;

import java.util.Arrays;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(locations = {"classpath:spring/spring-base5.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class EmpTest5 {

	@Resource
	private Dept5 dept;
	
	@Test
	public void testEmp() {
		System.out.println("部门编号"+this.dept.getDeptno()+"部门名称"+this.dept.getDname());
		System.out.println("部门信息"+Arrays.toString(this.dept.getInfos()));
		this.dept.getEmps().forEach((emp)->{
			System.out.println("雇员信息："+emp);
		});
	}

}
